package com.learn.design.strategy;

public class Test {
    public static void main(String[] args) {
        String name = "张三";
        String n = "赵六";
        CalculateHandler calculateHandler = Factory.getCalculateHandler(name);
        System.out.printf(calculateHandler.calculate(name).toString());
        CalculateHandler handler = Factory.getCalculateHandler(n);
        System.out.printf(handler.calculate(n).toString());
        handler.aaa(n);
    }
}
